<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item">
            <label class="relative block">
                <span class="color-green font-w7">师傅姓名</span>
                <span class="color-desc margin-left-5">Username</span>
                {if isset($vo) and isset($vo.sf_name)}
                <input disabled value='{$vo.sf_name|default=""}' class="layui-input layui-bg-gray">
                {else}
                <input name="sf_name" value='{$vo.sf_name|default=""}' required pattern="^.{2,}$" placeholder="请输入2位及以上字符登录用户账号" class="layui-input">
                {/if}
            </label>

        </div>
        <div class="layui-form-item">
            <label class="relative block">
                <span class="color-green font-w7">身份证号</span>
                <span class="color-desc margin-left-5">IdCard</span>
                {if isset($vo) and isset($vo.sf_sfzh)}
                <input disabled value='{$vo.sf_sfzh|default=""}' class="layui-input layui-bg-gray">
                {else}
                <input name="sf_sfzh" value='{$vo.sf_sfzh|default=""}' required pattern="^.{18,}$" placeholder="请输入18位身份证账号" class="layui-input">
                {/if}
            </label>

        </div>
        <div class="layui-form-item">
            <label class="relative block">
                <span class="color-green font-w7">师傅工种</span>
                <span class="color-desc margin-left-5">Gz</span>
                {if isset($vo) and isset($vo.sf_gz)}
                <input disabled value='{$vo.sf_gz|default=""}' class="layui-input layui-bg-gray">
                {else}
                <input name="sf_gz" value='{$vo.sf_gz|default=""}' placeholder="请输入工种名称" class="layui-input">
                {/if}
            </label>

        </div>
        <div class="layui-form-item">
            <label class="relative block">
                <span class="color-green font-w7">师傅联系手机</span>
                <span class="color-desc margin-left-5">Phone</span>
                <input type="tel" maxlength="11" autocomplete="off" autofocus name="sf_tel" value='{$vo.sf_tel|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
            </label>
            <p class="color-desc">可选，用户联系手机号码，需要填写正确的格式</p>
        </div>


    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

</form>
